/*
 * ProxClone : Proximity Clone, a war of numbers
 * Copyright (C) 2011-2011 Edi Ermawan <edi.ermawan@gmail.Com>
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */

#ifndef __HEXATILES_
#define __HEXATILES_

#include <SDL.h>


#include <SDL_ttf.h>
#include "GraphicUtils.h"
#include "Constant.h"



class HexaTile
{
public:

	static int ColoredGreen;
	static int ColoredBlue;
	HexaTile();
	void setNumber(unsigned int number);
	void setIndex(unsigned int index);
	void setColor(unsigned int color,bool forced=false);
	void setPos(unsigned int xValue,unsigned int yValue);
	void setSDLSurface(SDL_Surface& image,SDL_Surface& imageShiny,SDL_Surface& imageBlue,SDL_Surface& imageGreen,SDL_Surface& display);
	int getNumber();
	unsigned int getIndex();
	unsigned int getColor();
	unsigned int getPosX();
	unsigned int getPosY();

	void Render();
	~HexaTile();
protected:
	//~HexaTile();
private:
	int mNumber;
	unsigned int mIndex;
	unsigned int mColor;
	unsigned int mPosX;
	unsigned int mPosY;
	bool mIsShiny;
	bool mIsBlue;
	bool mIsGreen;
	SDL_Surface* mImage;
	SDL_Surface* mImageShiny;
	SDL_Surface* mImageBlue;
	SDL_Surface* mImageGreen;

	SDL_Surface* mImageNow;


	SDL_Surface* mDisplay;
	//SDL_Surface* mNumImage;
};
#endif  // __HEXATILES_